package com.diorsunion.hedge.io;

import com.diorsunion.hedge.common.ServiceResult;
import com.diorsunion.hedge.common.ConnectionStatus;

/**
 * 客户端处理类接口
 * Created by harley-dog on 2016/5/17.
 */
public interface IOClient {
    ServiceResult<ConnectionStatus> status();
    ServiceResult<ConnectionStatus> connect(String address,int port);
    ServiceResult<ConnectionStatus> disconnect();
    void write(Message message);
}
